package com.guoq.service;

import java.util.List;

import com.guoq.pojo.Result;
import com.guoq.pojo.User;
import com.guoq.pojo.UserExample;

public interface IUserService {
	
	public User getUserByUsername(String username, byte role);
	public User getUserById(int Id);
	public List<User> getUserList();
	public List<User> selectByExample(UserExample example);
	//初始化数据
	void initData();
	
	public User selectByPrimaryKey(Integer id);
	public int countByExample(UserExample example);
	
	public Result insert(User bean) throws Exception;
	public Result create(User bean) throws Exception;
}
